package xwbank.jmeter5.scripts.mysql;

import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;

public class MysqlSample extends AbstractJavaSamplerClient {

    @Override
    public Arguments getDefaultParameters() {
        Arguments arguments = new Arguments();
        arguments.addArgument("ip","");  //数据库ip地址
        arguments.addArgument("port","");
        arguments.addArgument("databaseUserName",""); //数据库账号
        arguments.addArgument("dataPassword","");
        arguments.addArgument("dbName",""); //数据库名称前缀
        arguments.addArgument("tableName",""); //表名
        arguments.addArgument("dbNum","");//分库数量
        arguments.addArgument("query",""); // 查询语句
        return arguments;
    }

    @Override
    public SampleResult runTest(JavaSamplerContext javaSamplerContext) {
        return null;
    }
}
